package com.telit.firecommand.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.telit.firecommand.entity.GeoXzqhXian;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface GeoXzqhXianDao extends BaseMapper<GeoXzqhXian> {

    /**
     * 查找县区
     * @return
     */
    List<GeoXzqhXian> selectXian(@Param("districtCode") String districtCode);

    /**
     * 根据code查询name
     * @param xian
     * @return
     */
    String queryNameByCode(@Param("xian")String xian);

    String queryCodeByName(@Param("districtName")String districtName);
}